<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bom</title>
</head>

<body>
<button onclick="function moveT()":void></button>
<button onclick="function moveT()">移动到xxx</button>
<button onclick="function moveT()">相对移动</button>
<button onclick="function moveT()">改变大小</button>
<button onclick="function moveT()">相对改变大小</button>
<button onclick="c()">关闭窗口</button>


</body>
<script>

    var a = "hello";
    var b = 19;
    //只要是在全局的，变量的 或者 方法 都默认挂载到window对象上
    function text() {
        console.log('全局变量');
    }
    console.log(this);
    window.alert('弹窗');
    console.log(window.a);

    function openW() {
        window.openW(){
            window.open('http://www.baidu.com', '_blank', "window=200px,height=200px,left=300px", true);
        }
        console.log(neww);
    }

    function moveT() {
        neww.moveT(400, 200)
    }

    function moveB() {
        neww.moveT(400, 200)
    }

    function() {
        neww.moveT(400, 200)
    }

    function () {
        neww.moveT(400, 200)
    }

</script>

</html>